﻿<script>
    $(function () {
        $("#loginform").submit(function () {
            $.ajax({
                url: apiUrl,
                data: $(this).serialize(),
                type: "Post",
                dataType: "json",
                success: function (data) {
                    if (data.IsSccuess) {
                        window.location.reload();
                    } else {
                        alert(data.Message);
                    }
                }
            });
            return false;
        });
    });
</script>
<div aria-hidden="true" aria-labelledby="remoteModalLabel" role="dialog" id="Login-Modal"
    class="modal fade" style="display: none;">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button aria-hidden="true" data-dismiss="modal" class="close" type="button">
                    ×
                </button>
                <h4 class="modal-title">登录</h4>
            </div>
            <div class="modal-body no-padding">

                <form class="smart-form" id="loginform" method="POST">
                    <fieldset>
                        <section>
                            <label class="label">账号</label>
                            <label class="input">
                                <i class="icon-append fa fa-user"></i>
                                <input type="text" name="Account">
                                <b class="tooltip tooltip-top-right"><i class="fa fa-user txt-color-teal"></i>
                                    请输入账号</b></label>
                        </section>
                        <section>
                            <label class="label">密码</label>
                            <label class="input">
                                <i class="icon-append fa fa-lock"></i>
                                <input type="password" name="Password">
                                <b class="tooltip tooltip-top-right"><i class="fa fa-lock txt-color-teal"></i>输入您的密码</b>
                            </label>
                        </section>
                    </fieldset>
                    <footer>
                        <input type="hidden" value="SYS" name="sys:sno" />
                        <input type="hidden" value="Login" name="sys:act" />
                        <button class="btn btn-primary" type="submit" id="update-column">
                            登录
                        </button>
                    </footer>

                </form>
            </div>
        </div>
    </div>
</div>
